package com.sc.byahi.open.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.sc.byahi.open.shared.LatestState;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("public")
public interface OpenService extends RemoteService {
	/**
	 * Utility class for simplifying access to the instance of async service.
	 */
	public static class Util {
		private static OpenServiceAsync instance;

		public static OpenServiceAsync getInstance() {
			if (instance == null) {
				instance = GWT.create(OpenService.class);
			}
			return instance;
		}
	}

	LatestState getLatestState();
	
}
